import request from 'api/request'

export function getComment(articleid) {
  return request({
    url: '/comment/getcomment',
    method: 'get',
    params: { articleid: articleid }
  })
}

export function addComment(data) {
  return request({
    url: '/comment/add',
    method: 'post',
    data
  })
}
export function updateComment(data) {
  return request({
    url: '/comment/update',
    method: 'post',
    data
  })
}
